package cn.snowheart.boot.logging;

import org.apache.log4j.Logger;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author liuwanxiang
 * @version 2019/03/29
 */
@RestController
@RequestMapping("/log4j")
public class Log4jController {

    private static final Logger log = Logger.getLogger(Log4jController.class);

    @RequestMapping("/hello")
    public String hello() {
        log.info("this is log4j version 1.x.x");
        return "hello";
    }

}
